﻿@model Vacation.Models.UserDetailModel

@{
    ViewBag.Title = "用户详情";
}

<h2>用户详情</h2>
 <table width="100%" class="edit">
        <tr>
            <th>
                <div class="display-label">
                    @Html.LabelFor(model => model.UserName)
                </div>
            </th>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(model => model.UserName)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                <div class="display-label">
                    @Html.LabelFor(model => model.RealName)
                </div>
            </th>
            <td>
                <div class="display-field">
                    @Html.DisplayFor(model => model.RealName)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                <div class="display-label">
                    @Html.LabelFor(model => model.School)
                </div>
            </th>
            <td>
                <div class="display-field">
                     @Html.DisplayFor(model => model.School)
                </div>
            </td>
        </tr>
        <tr>
            <th>
                <div class="display-label">
                    @Html.LabelFor(model => model.Roles)
                </div>
            </th>
            <td>
                <div class="display-field">
                     @Html.DisplayFor(model => model.Roles)
                </div>
            </td>
        </tr>
    </table>
<p>
    @Html.ActionLink("编辑", "UserEdit", new { username=Model.UserName }) |
    @Html.ActionLink("返回列表", "UserIndex")
</p>
